﻿using System;
using System.Collections.Generic;
using OhioState.Graphics;

namespace OhioState.Graphics.OpenGL
{
    public class GraphicsGeneratorFactory
    {
        public static GraphicsGenerator Instance
        {
            get
            {
                //depending on what we need, return GL or DirectX generator
                if (instance == null)
                {
                    instance = new GraphicsGeneratorGL();//GraphicsGeneratorDirectX();
                }
                return instance;
            }
        }

        [NonSerialized()]
        private static GraphicsGenerator instance;

        // Explicit static constructor to tell C# compiler
        // not to mark type as beforefieldinit
        static GraphicsGeneratorFactory()
        {
        }

        private GraphicsGeneratorFactory()
        {
        }
    }
}
